<?php
/**
 * @var $this \yii\web\View
 * @var $content
 */
use app\assets\AdminAsset;
use yii\bootstrap\Html;
use yii\widgets\Breadcrumbs;

$adminAsset = AdminAsset::register($this);
$baseUrl = $adminAsset->baseUrl;
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
	<meta charset="<?= Yii::$app->charset ?>">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<?= Html::csrfMetaTags() ?>
	<title><?= Html::encode($this->title) ?> | 华商科技</title>
	<!-- Tell the browser to be responsive to screen width -->
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<meta name="renderer" content="webkit">
<?php $this->head() ?>
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="//oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
	<script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">
<?php $this->beginBody() ?>
<div class="wrapper">

	<?= $this->render('header', ['baseUrl' => $baseUrl]) ?>
	<!-- Left side column. contains the logo and sidebar -->
	<?= $this->render('leftside', ['baseUrl' => $baseUrl]) ?>

	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>
				<?= Html::encode($this->title) ?>
				<!--<small>Version 2.0</small>-->
			</h1>
			<?= Breadcrumbs::widget([
				'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
			]) ?>
			<?= \app\widgets\Alert::widget() ?>
		</section>

		<!-- Content Wrapper. Contains page content -->
		<?= $this->render('content', ['content'=>$content]) ?>
		<!-- /.content-wrapper -->
	</div>


	<footer class="main-footer">
		<div class="pull-right hidden-xs">
			<b>Version</b> 2.3.7
		</div>
		<strong>Copyright &copy; 2014-2016 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights
		reserved.
	</footer>

</div>
<!-- ./wrapper -->
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
